#include <unistd.h>
#include <iostream>
#include "cpputils.h"

using namespace std;

int main(int argc, char* argv[])
{
    map<string,vector<int> > pids;
    EnumProcPids(pids);
    
    map<string,vector<int> >::iterator it;
    for( it = pids.begin(); it != pids.end(); ++it)
    {
        cout<< it->first <<":"<<endl;
        vector<int>::iterator itv;
        for(itv = it->second.begin(); itv != it->second.end(); ++itv)
            cout<<"\t"<<*itv<<endl;
    }

    return 0;
}
